<?php include "coresection/connection.php";?>
<?php include "coresection/checkSession.php";?>
<?php include "coresection/order-list.php";?>
<?php include "coresection/admin-list.php";?>
<?php include "coresection/search-addlist-cms.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <?php include 'modules/head.php'; ?>
</head>

<body>
<?php include 'modules/topbar.php'; ?>

<div class="setup_area">
    <?include 'modules/sidebar-admin.php'?>

    <div class="header">
        <h1>充值记录</h1>
        <?php include 'modules/header.php'; ?>
    </div>


    <div class="content_area">

<div class="main addmoney-box"  >

    <form action="" method="post" autocomplete="off" enctype="multipart/form-data">
        充值时间：<select name="year">
            <option value="<?echo date("Y",time())?>"><?echo date("Y",time())?></option>
            <option value="<?echo date("Y",time())-1?>"><?echo date("Y",time())-1?></option>
        </select>
        年
        <select name="month">
            <option value="01" class="month_1">01</option>
            <option value="02" class="month_2">02</option>
            <option value="03" class="month_3">03</option>
            <option value="04" class="month_4">04</option>
            <option value="05" class="month_5">05</option>
            <option value="06" class="month_6">06</option>
            <option value="07" class="month_7">07</option>
            <option value="08" class="month_8">08</option>
            <option value="09" class="month_9">09</option>
            <option value="10" class="month_10">10</option>
            <option value="11" class="month_11">11</option>
            <option value="12" class="month_12">12</option>
        </select>
        月
        <select name="days">
            <option value="0">全部</option>
            <option value="01">01</option><option value="02">02</option><option value="03">03</option>
            <option value="04">04</option><option value="05">05</option><option value="06">06</option>
            <option value="07">07</option><option value="08">08</option><option value="09">09</option>
            <option value="10">10</option><option value="11">11</option><option value="12">12</option>
            <option value="13">13</option><option value="14">14</option><option value="15">15</option>
            <option value="16">16</option><option value="17">17</option><option value="18">18</option>
            <option value="19">19</option><option value="20">20</option><option value="21">21</option>
            <option value="22">22</option><option value="23">23</option><option value="24">24</option>
            <option value="25">25</option><option value="26">26</option><option value="27">27</option>
            <option value="28">28</option><option value="29">29</option><option value="30">30</option>
            <option value="31">31</option>
        </select>
        日 充值会员号：<select name="addId">
            <option value="all">全部</option>
            <?php for($n=0;$n<$sum;$n++){?>
                <option value="<?echo $admin_user_id[$n]?>"><?echo $admin_user_id[$n]?></option>
            <? } ?>
        </select>

        <p class="function">
            <input type="submit" class="layui-btn" value="查看"/>
            <input type="submit" class="layui-btn"onclick="print_btn('charge_list')"  value="打印"/>
        </p>


    </form>
    <div class="printArea"  id="charge_list">

        <style>
            body table {
                border:1px solid ;
                width: 100%;
            }
            body table td {
                border: 1px solid;
                text-align: center;
            }
        </style>


        <p><b><?echo $reStr?></b> 共<b style="color: #F00;"><?echo $sumadd?></b>条充值记录</p>
        <table cellspacing="0" cellpadding="0" border="0" class="checkTable  layui-table admin_list_table">
            <thead>
            <tr>
                <td>会员号</td>
                <td>姓名</td>
                <td>部门</td>
                <td>充值日期</td>
                <td>充值金额</td>
                <td>操作员</td>
            </tr>
            </thead>
            <tbody>
            <?php for($i=0;$i<$sumadd;$i++){?>
                <tr>
                    <td><?echo $add_user[$i]?></td>
                    <td><?echo $add_name[$i]?></td>
                    <td><?echo $add_department[$i]?></td>
                    <td><?echo $add_date[$i]?></td>
                    <td><?echo $add_money[$i]?></td>
                    <td><?echo $add_admin[$i]?></td>
                </tr>
            <? } ?>
            </tbody>
        </table>
    </div>
</div>

        <?php include 'modules/footer.php'; ?>
</body>
</html>